from pydantic import Field

from .base import Base
from .resume_id import ResumePositionId


class BaseResumePosition(Base):
    position: str = Field(..., description='Желаемая должность')
    employment: str = Field(..., description='Занятость')
    work_schedule: str = Field(..., description='График работы')


class ResumePositionCreate(BaseResumePosition):
    pass


class ResumePositionResult(BaseResumePosition):
    id: ResumePositionId = Field(
        ...,
        description='Уникальный идентификатор'
    )


class ResumePositionUpdate(Base):
    position: str | None = Field(None, description='Желаемая должность')
    employment: str | None = Field(None, description='Занятость')
    work_schedule: str | None = Field(None, description='График работы')
